<div class="content-form edit-aluno">
    <?php echo $this->partial('aluno/menu.phtml', array('urlbase'=>$this->urlbase,'urlfoto'=>$this->urlfoto,'modulo'=>$this->modulo,'controller' => $this->controller, 'action' => $this->action, 'data' => $this->data)); ?>
    
    <div id="content-form">
        
        <div class="content-form-top">
        
            <h2><?php echo $this->Menualuno_nom[$this->action];?></h2>
            
        </div>
        
        <form id="form_aluno" action="" method="post">    
            <input type="hidden" id="APV_ID" name="APV_ID" value="<?php echo $this->apv['APV_ID']; ?>" />
            <input type="hidden" id="ALU_ID" name="ALU_ID" value="<?php echo $this->data['ALU_ID']; ?>" />
            
            <div class="row">
                <div class="ln"><strong style="display: inline-block;width: 135px;">Instituição de Ensino</strong>
                <?php
                    $html = '<select name="FAC_ID[]" class="chosen-select" required=""><option value="">Nenhum</option>'; // multiple="multiple" style="width: 400px;min-height: 70px;">
                    $query = 'SELECT SQL_CACHE FAC_ID,FAC_NOM FROM FACULDADE WHERE FAC_STA = 1 ORDER BY FAC_NOM ASC';
                    $row = $this->db->fetchAll($query);
                    $arr = array();
                    foreach($row as $r){ 
                        $selected = $r['FAC_ID'] == $this->apv['FAC_ID'] ? 'selected=""':'';            
                        $html .= '<option '.$selected.' value="'.$r['FAC_ID'].'">'.$r['FAC_NOM'].'</option>'; 
                    }
                    echo $html .= '</select>';
                ?>
                </div>
                <div class="ln"><strong style="display: inline-block;width: 135px;">Cursos de Graduação</strong>
                <?php
                    $html = '<select name="CUF_ID[]" class="chosen-select" required=""><option value="0">Nenhum</option>'; // multiple="multiple" style="width: 400px;min-height: 70px;">
                    $query = 'SELECT SQL_CACHE CUF_ID,CUF_NOM FROM CURSOFACULDADE WHERE CUF_STA = 1 ORDER BY CUF_NOM ASC';
                    $row = $this->db->fetchAll($query);
                    $arr = array();
                    foreach($row as $r){  
                        $selected = $r['CUF_ID'] == $this->apv['CUF_ID'] ? 'selected=""':'';
                        $html .= '<option '.$selected.' value="'.$r['CUF_ID'].'">'.$r['CUF_NOM'].'</option>'; 
                    }
                    echo $html .= '</select>';
                ?>
                </div>
                <div class="ln"><strong style="display: inline-block;width: 135px;" required>Ano</strong>
                    <input type="text" name="APV_ANO" value="<?php echo $this->apv['APV_ANO']; ?>" class="nummin" required="" />
                </div>
                <div class="ln"><strong style="display: inline-block;width: 135px;" required>Semestre</strong>
                    <input type="text" name="APV_SEM" value="<?php echo $this->apv['APV_SEM']; ?>" class="nummin" />
                </div>
                <div class="ln"><strong style="display: inline-block;width: 135px;" required>Chamada</strong>
                    <input type="text" name="APV_CHM" value="<?php echo $this->apv['APV_CHM']; ?>" class="nummin" />
                </div>
                <div class="ln"><strong style="display: inline-block;width: 135px;" required>Classificação Geral</strong>
                    <input type="text" name="APV_CLSGER" value="<?php echo $this->apv['APV_CLSGER']; ?>" class="nummin" />
                    &nbsp; <strong>Curso &nbsp;</strong>
                    <input type="text" name="APV_CLSCUR" value="<?php echo $this->apv['APV_CLSCUR']; ?>" class="nummin" />
                </div>
                
            </div> 
            
            <div class="row cnt-frm-btn">
                <input type="submit" name="submit" id="submitbutton" value="Salvar" class="btn-frm">

                <a href="<?php echo $this->urlmodulo.'/'.$this->controller.'/'.$this->action.'/id/'.$this->data['ALU_ID']; ?>" class="btn-frm">voltar</a>
            </div>
        </form>
    </div>
</div>
